package com.git.bds.mr.doctor.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 医生信息表
 * </p>
 *
 * @author 成大事
 * @since 2022-09-19 16:41:33
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("doctor")
@ApiModel(value = "Doctor对象", description = "医生信息表")
public class Doctor extends Model<Doctor> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Long id;

    @TableField("sector_id")
    @ApiModelProperty("科室id")
    private Long sectorId;

    @ApiModelProperty("工号")
    @TableField("job_num")
    private String jobNum;

    @ApiModelProperty("医生姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("医生职称")
    @TableField("title")
    private String title;

    @ApiModelProperty("（0：M；1：W）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("研究方向")
    @TableField("indication_direction")
    private String indicationDirection;

    @TableField("age")
    @ApiModelProperty("年龄")
    private Integer age;


    public static final String ID = "id";

    public static final String SECTOR_ID = "sector_id";

    public static final String JOB_NUM = "job_num";

    public static final String NAME = "name";

    public static final String TITLE = "title";

    public static final String SEX = "sex";

    public static final String AVATAR = "avatar";

    public static final String INDICATION_DIRECTION = "indication_direction";

    public static final String AGE = "age";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
